package ui.model;

import java.util.Comparator;

/**
 * Created by chenjian on 2019/12/4
 */

public class RewardsComparator implements Comparator<RewardsBean> {


    @Override
    public int compare(RewardsBean o1, RewardsBean o2) {
        int flag = 0;
        if (o1.getSort().compareToIgnoreCase(o2.getSort()) > 0) {
            flag = 1;
        } else {
            flag = -1;
        }
        return flag;
    }
}
